//
//	MCCreatePlanActionPlanDetailActionList.swift
//	Model file generated using JSONExport: https://github.com/Ahmed-Ali/JSONExport

import Foundation 
import ObjectMapper


class MCCreatePlanActionPlanDetailActionList : NSObject, NSCoding, Mappable{

	var actionId : Int?
	var actionNumber : Int?
	var actionTime : Int?
	var actionType : Int?
	var actionWeight : Int?
	var sort : Int?


	class func newInstance(map: Map) -> Mappable?{
		return MCCreatePlanActionPlanDetailActionList()
	}
	required init?(map: Map){}
	private override init(){}

	func mapping(map: Map)
	{
		actionId <- map["actionId"]
		actionNumber <- map["actionNumber"]
		actionTime <- map["actionTime"]
		actionType <- map["actionType"]
		actionWeight <- map["actionWeight"]
		sort <- map["sort"]
		
	}

    /**
    * NSCoding required initializer.
    * Fills the data from the passed decoder
    */
    @objc required init(coder aDecoder: NSCoder)
	{
         actionId = aDecoder.decodeObject(forKey: "actionId") as? Int
         actionNumber = aDecoder.decodeObject(forKey: "actionNumber") as? Int
         actionTime = aDecoder.decodeObject(forKey: "actionTime") as? Int
         actionType = aDecoder.decodeObject(forKey: "actionType") as? Int
         actionWeight = aDecoder.decodeObject(forKey: "actionWeight") as? Int
         sort = aDecoder.decodeObject(forKey: "sort") as? Int

	}

    /**
    * NSCoding required method.
    * Encodes mode properties into the decoder
    */
    @objc func encode(with aCoder: NSCoder)
	{
		if actionId != nil{
			aCoder.encode(actionId, forKey: "actionId")
		}
		if actionNumber != nil{
			aCoder.encode(actionNumber, forKey: "actionNumber")
		}
		if actionTime != nil{
			aCoder.encode(actionTime, forKey: "actionTime")
		}
		if actionType != nil{
			aCoder.encode(actionType, forKey: "actionType")
		}
		if actionWeight != nil{
			aCoder.encode(actionWeight, forKey: "actionWeight")
		}
		if sort != nil{
			aCoder.encode(sort, forKey: "sort")
		}

	}

}